import request from '../../utils/httpRequest'

const member = '/member/member/member'

// 查询list
export function getMemberList (param) {
  return request({
    url: `${member}/list`,
    method: 'get',
    param
  })
}

// 根据ids批量删除
export function deleteMemberByIds (data) {
  return request({
    url: `${member}/delete`,
    method: 'delete',
    data
  })
}

// 根据id查询
export function getMemberById (id) {
  return request({
    url: `${member}/info/${id}`,
    method: 'get'
  })
}

// 新增
export function saveMember (data) {
  return request({
    url: `${member}/save`,
    method: 'post',
    data
  })
}

// 修改
export function updateMember (data) {
  return request({
    url: `${member}/update`,
    method: 'put',
    data
  })
}
